<template>
	<view class="myPages"  :style="{paddingTop: `${search.top+search.height+10}px`}">
		<myHeard :search="search" :title="title" @goPath="goBack"></myHeard>
		<view v-if="content">
			<u-parse :content="content"></u-parse>
		</view>

	</view>
</template>

<script>
	import myHeard from '@/components/myHeard/index.vue'
	export default {
		components: {
			myHeard
		},
		data() {
			return {
				title: '关于拼表多',
				content: ''
			}
		},
		onLoad() {
			// #ifndef H5
			let search = uni.getMenuButtonBoundingClientRect()
			this.$store.commit('updataSearch', search);
			// #endif
			this.getOtherSetInfo();
		},
		computed: {
			search() {
				return this.$store.state.search;
			},

		},
		methods: {
			getOtherSetInfo(){
				this.$api.wxGetOtherSetInfo().then(res=>{
					if(res.code==200){
						this.content = res.data.aboutContent;
					}
				})
			},
			goPath(url) {
				uni.navigateTo({
					url
				})
			},
			goBack() {
				uni.navigateBack()
			},
			
		}
	}
</script>

<style scoped lang="scss">
	.myPages {
		min-height: 100vh;
	    background-color: #fff;
		box-sizing: border-box;
	
	}
</style>
